package com.day0422.SellCar;/*
 * @创建者：黄苟苟
 * @创建时间：2021/4/23   15:57
 * @Description描述
 **/

public class CarShop {
    private int money=0;

    public void sellCar(Car car){
        System.out.println("车型："+car.getName()+"单价："+car.getPrice());
        money+=car.getPrice();
    }
    public int getMoney(){
        return money;
    }
}

